package com.pn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @package : com.pn.controller
 * @progect : ponitnews
 * @Description :
 * @Created by : wangxueyang
 * @Creation Date ：2017年12月19日15:02
 */
@Controller
@RequestMapping("/pn/user")
public class UserController {

    @RequestMapping("usertest")
    @ResponseBody
    public String testUser(){
        return "hello,world !";
    }

    @RequestMapping("helloUser")
    public String helloUser(){
        System.out.println("222");
        return "demo";
    }
}
